import javax.swing.JPanel;
import java.awt.Frame;
import java.awt.BorderLayout;
import javax.swing.JDialog;
import java.awt.Rectangle;
import java.awt.GridBagLayout;
import java.awt.CardLayout;
import java.awt.Dimension;
import javax.swing.JButton;

public class SerialConsolePropertyDialog extends JDialog {

	private static final long serialVersionUID = 1L;
	private SerialConsolePropertyPanel jContentPane = null;
	private JButton jButtonCancel = null;
	private JButton jButtonOK = null;
	public boolean ResultOK = false;
	/**
	 */
	public SerialConsolePropertyDialog(Frame owner) {
		super(owner,"Terminal",true); // ���[�_��
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 * @return void
	 */
	private void initialize() {
		this.setSize(264, 308);
		this.setContentPane(getJContentPane());
		//this.setVisible(true);

	}

	/**
	 * This method initializes jContentPane
	 * 
	 * @return javax.swing.JPanel
	 */
	public  SerialConsolePropertyPanel getJContentPane() {
		if (jContentPane == null) {
			jContentPane = new SerialConsolePropertyPanel();
			jContentPane.setLayout(null);
			jContentPane.add(getJButtonCancel(), null);
			jContentPane.add(getJButtonOK(), null);
		}
		return jContentPane;
	}

	/**
	 * This method initializes jButtonCancel	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonCancel() {
		if (jButtonCancel == null) {
			jButtonCancel = new JButton();
			jButtonCancel.setBounds(new Rectangle(25, 217, 80, 38));
			jButtonCancel.setText("Cancel");
			jButtonCancel.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					setVisible(false); 
				}
			});
		}
		return jButtonCancel;
	}

	/**
	 * This method initializes jButtonOK	
	 * 	
	 * @return javax.swing.JButton	
	 */
	private JButton getJButtonOK() {
		if (jButtonOK == null) {
			jButtonOK = new JButton();
			jButtonOK.setBounds(new Rectangle(145, 217, 77, 37));
			jButtonOK.setText("OK");
			jButtonOK.addActionListener(new java.awt.event.ActionListener() {
				public void actionPerformed(java.awt.event.ActionEvent e) {
					getJContentPane().UpdateData(false);
					ResultOK = true;
					setVisible(false);
				}
			});
		}
		return jButtonOK;
	}

}  //  @jve:decl-index=0:visual-constraint="10,10"
